package com.fingard.dsp.bank.reqrespobj.virtual;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.text.StringHelper;
import com.fingard.xml.XmlTextWriter;

import java.util.HashMap;

public class RetAtsQueryVirtualOrder extends RetAtsBase {
	public String respCode;
	public String respInfo;

	/** 商户订单号 */
	public String rdSeq;
	/** 业务结果 */
	public String transState;
	/** 己方账号 */
	public String ourBankAccount;
	/** 虚拟户编号 */
	public String virtualAccount;
	/** 记账流水号 */
	public String askNumber;
	/** 交易日期(yyyyMMdd) */
	public String payDate;
	/** 交易时间(hh24miss) */
	public String payTime;
	/** 对方账号 */
	public String oppBankAccount;
	/** 对方户名 */
	public String oppBankAccountName;
	/** 交易方向 1-支出，2-收入*/
	public String moneyWay;
	/** 交易金额*/
	public String amount;
	/** 摘要 */
	public String memo;


	public HashMap<String, String> getRetAtsHashMap() {
		HashMap<String, String> retHash = new HashMap<String, String>();
		
		if (StringHelper.hasAnyChar(respCode)) {
			retHash.put("RespCode", respCode);
		}
		if (StringHelper.hasAnyChar(respInfo)) {
			retHash.put("RespInfo", respInfo);
		}
		if (StringHelper.hasAnyChar(rdSeq)) {
			retHash.put("RdSeq", rdSeq);
		}
		if (StringHelper.hasAnyChar(transState)) {
			retHash.put("TransState", transState);
		}
		if (StringHelper.hasAnyChar(ourBankAccount)) {
			retHash.put("OurBankAccount", ourBankAccount);
		}
		if (StringHelper.hasAnyChar(virtualAccount)) {
			retHash.put("VirtualAccount", virtualAccount);
		}
		if (StringHelper.hasAnyChar(askNumber)) {
			retHash.put("AskNumber", askNumber);
		}
		if (StringHelper.hasAnyChar(payDate)) {
			retHash.put("PayDate", payDate);
		}
		if (StringHelper.hasAnyChar(payTime)) {
			retHash.put("PayTime", payTime);
		}
		if (StringHelper.hasAnyChar(oppBankAccount)) {
			retHash.put("OppBankAccount", oppBankAccount);
		}
		if (StringHelper.hasAnyChar(oppBankAccountName)) {
			retHash.put("OppBankAccountName", oppBankAccountName);
		}
		if (StringHelper.hasAnyChar(moneyWay)) {
			retHash.put("MoneyWay", moneyWay);
		}
		if (StringHelper.hasAnyChar(amount)) {
			retHash.put("Amount", amount);
		}
		if (StringHelper.hasAnyChar(memo)) {
			retHash.put("Memo", memo);
		}
		return retHash;
	}
	
}
